﻿namespace FileStorageCenter.Services.Models;

public partial class FileInfo
{
    public new class QueryModel : EntityBase.QueryModel
    {
        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件ID")]
        public string FileId { get; set; } = string.Empty;

        /// <summary>
        /// 访问链接
        /// </summary>
        [DisplayName("访问链接")]
        public string Url { get; set; } = string.Empty;

        /// <summary>
        /// 组名
        /// </summary>
        [DisplayName("组名")]
        public string GroupName { get; set; } = string.Empty;

        /// <summary>
        /// 文件名
        /// </summary>
        [DisplayName("文件名")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 文件扩展
        /// </summary>
        [DisplayName("文件扩展")]
        public string Extension { get; set; } = string.Empty;

        /// <summary>
        /// 文件大小
        /// </summary>
        [DisplayName("文件大小")]
        public long Size { get; set; }

        /// <summary>
        /// 由谁上传
        /// </summary>
        [DisplayName("由谁上传")]
        public User.QueryModel AddedBy { get; set; } = null!;

        /// <summary>
        /// 哈希值
        /// </summary>
        [DisplayName("哈希值")]
        public string Hash { get; set; } = string.Empty;
    }
}